import request from '@/service'

// 查询信息
export const findUserProfileApi = (data, token) => {
  return request.post({ url: '/user/user/findUserProfile', data, Authorization: token })
}

export const userCountApi = (data, token) => {
  return request.post({ url: '/store/user/userCount', data, Authorization: token })
}

//
export const findUserPrivateMapMachineCountApi = (data, token) => {
  return request.post({
    url: '/game/map/findUserPrivateMapMachineCount',
    data,
    Authorization: token
  })
}

//
export const findTeamMapDataApi = (data, token) => {
  return request.post({
    url: '/game/map/findTeamMapData',
    data,
    Authorization: token
  })
}

// https://kp-meta.com/server/user/invite/create
// {
//     "inviteCode": "3824402"
// }

export const inviteCreateApi = (data, token) => {
  return request.post({
    url: '/user/invite/create',
    data,
    Authorization: token
  })
}

// 赠送出去多少个
export const giveRecordApi = (data, token) => {
  return request.post({
    url: '/game/wallet/giveRecord',
    data,
    Authorization: token
  })
}

// 订单 用来判断那天买龙
export const orderListApi = (data, token) => {
  return request.post({ url: '/store/order/list', data, Authorization: token })
}
